﻿using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System;
using DTO;
using System.Data.OleDb;

namespace DAO
{
    public class LoaiSachDAO
    {
        public static DataTable layFullLoaiSach()
        {
            List<LoaiSachDTO> lst = new List<LoaiSachDTO>();
            String strQuery = "select * from LoaiSach where chXoa = 0";
            OleDbConnection con = DataProvider.conectDB();
            OleDbCommand cmd = new OleDbCommand(strQuery, con);
            OleDbDataReader reader = cmd.ExecuteReader();
            DataTable table = new DataTable();
            table.Load(reader);
            reader.Close();
            con.Close();
            return table;
        }
    }
}
